package com.uls.ldcm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 基本信息对象 laborers
 * 
 * @author gw
 * @date 2024-10-31
 */
public class Laborers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 劳务人员唯一标识 */
    private Long id;


    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    private String picture;

    /** 劳务人员电话 */
    @Excel(name = "劳务人员电话")
    private String phone;

    /** 劳务人员入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "劳务人员入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hireDate;

    /** 合同ID */
    @Excel(name = "合同ID")
    private Long contractId;

    private String name;

    private String contractTerms;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContractTerms() {
        return contractTerms;
    }

    public void setContractTerms(String contractTerms) {
        this.contractTerms = contractTerms;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setHireDate(Date hireDate) 
    {
        this.hireDate = hireDate;
    }

    public Date getHireDate() 
    {
        return hireDate;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sex", getSex())
            .append("picture", getPicture())
            .append("phone", getPhone())
            .append("hireDate", getHireDate())
            .append("contractId", getContractId())
                .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createdAt", getCreatedAt())
            .append("updateBy", getUpdateBy())
            .append("updatedAt", getUpdatedAt())
                .append("contractTerms", getContractTerms())
            .toString();
    }
}
